package com.java83.web;

import com.java83.exception.MyException;
import com.java83.pojo.Person;
import com.java83.service.AaaService;
import com.java83.service.impl.Impl2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("qwerr")
public class LanJieQiCeShi {
    @Autowired
    private Impl2 impl2;

    @RequestMapping("/q")
    public String qweqqqqq(@RequestBody Person person){
        System.out.println("我是post"+person);
        return "/index.jsp";
    }

    @RequestMapping("/qqq")
    public String qweqqqqqq() throws MyException{
        impl2.findOne(1);
        return "/index.jsp";
    }
}
